package com.steak.spring.event;

import lombok.NonNull;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author 刘牌
 * @Title:
 * @date 2022-04-2319:00
 */
@Component
public class OrderListener implements ApplicationListener<OrderEvent<OrderDTO>> {
    @Override
    public void onApplicationEvent(@NonNull OrderEvent<OrderDTO> event) {
        System.out.println("123");
        System.out.println(event);
    }

}
